package com.huyn.baseframework.net;

import com.huyn.baseframework.utils.Constant;

/**
 * Created by huyaonan on 15/10/11.
 */
public class OpenApi {

    public static final String ERROR_CODE_FOR_LOGIN = "6100";

    public static final String API_METHOD = Constant.API_REQUEST_METHOD;

    //线上
    public static final String ROUTER_ONLINE = "http://openapi.aube-tv.com/router/rest2";

    //测试服
    public static final String ROUTER_TEST = "http://192.168.1.254/openapi2/router/rest2";

    private static String mRouter = ROUTER_ONLINE;
    public static String getRouter() {
        return mRouter;
    }

    public static void setRouter(String router) {
        mRouter = router;
    }

    /**
     * 参数:showid
     */
    public static final String TIMELINE = "com.aube.video.timeline.list";

    /**
     * 参数videoid
     */
    public static final String CHANNEL_DETAIL = "com.aube.video.info";

    /**
     * FEATURE LIST
     * 参数:videoid
     */
    public static final String FEATURE_LIST = "com.aube.video.feature.list";

    /**
     * 参数：rid，optionId, cancelOpId
     */

    public static final String REPORT_DATA = "com.aube.video.interact.reportData";
    public static final String DATA_COUNT = "com.aube.video.interact.dataCount";

    /**
     * 获取聊天室id
     * arg:videoid
     * return:data:chatroomid
     */
    public static final String GET_CHATROOM_ID = "com.aube.video.easemob.getChatroomid";

    /**
     * 节目列表
     * 参数:from,maxnum
     */
    public static final String CHANNEL_LIST = "com.aube.video.show.list";

    /***********************************************************************************************
     * 以下的api,从2.0开始新增
     **********************************************************************************************/

    /**
     * 添加收藏夹
     * deviceid设备id goodsid 商品id state 1是收藏0是取消 videoid
     */
    public static final String ADD_FAVOR = "com.aube.goods.favorites";

    /**
     * 收藏夹列表
     * deviceid  videoid  from maxnum
     */
    public static final String FAVOR_LIST = "com.aube.goods.favoritesGoodsList";

    /**
     * 物品的timeline
     */
//    public static final String GOODS_TIMELINE = "com.aube.goods.timeline.goodsListByVideoid";
    public static final String GOODS_TIMELINE = "com.aube.video.timeline.goods.list";//modified on 2016/12/5

    /**
     * 多镜头时间线
     */
    public static final String MULTI_SCREEN_TIMELINE = "com.aube.video.timeline.mc.list";

    /**
     * VR时间线
     */
    public static final String VR_TIMELINE = "com.aube.video.timeline.vr.list";

    /**
     * 用法同 @TIMELINE
     * 去除了多镜头的数据
     */
    public static final String TIMELINE_WITHOUT_VIDEO = "com.aube.video.timeline.interaction.list";

    /**
     * 参数:code
     */
    public static final String WX_LOGIN = "com.aube.ucenter.weixin.login";

    /**
     *  QQ登录接口
     */
    public static final String QQ_LOGIN = "com.aube.ucenter.qq.login";

    /***********************************************************************************************
     * 二期模块化接口
     **********************************************************************************************/

    /**
     * 模块参数
     */
    public static final String MODULE_LIST = "com.aube.app.module.android.list";

    /**
     * 模块数据
     * 参数：templateCode（index | actor）、relatedId（index不需要，actor需要）、ostype(android | iphone)
     * 2016.11.17 modified from com.aube.app.template.data to com.aube.app.v2.template.data
     */
    public static final String HOME_DETAIL = "com.aube.app.v2.template.data";

    /**
     * 模块内容接口
     * templateCode(index | actor)
     * ostype(iphone|android)
     * modelCode（template接口中获取）
     * relatedId（有就传，比如嘉宾）
     * lastId（分页用，第一次可不传，当前页最后一个id）
     * maxnum（一页最大条数）
     * 2016.11.17 modified from com.aube.app.model.data to com.aube.app.v2.model.data
     */
//    public static final String HOME_DETAIL = "com.aube.app.module.android.data";
    //public static final String MODULE_MORE = "com.aube.app.model.data";
    public static final String MODULE_MORE = "com.aube.app.v2.model.data";

    /**
     * 开屏广告
     */
    public static final String SPLASH_SCREEN = "com.aube.app.screen.loading";

    /***********************************************************************************************
     * 消息收发接口
     **********************************************************************************************/

    /**
     * 消息拉取
     * 参数：videoid（视频ID必须）、startTime（开始拉取时间单位秒，默认0）、maxnum（最大条数，默认200）
     */
    public static final String MESSAGE_LIST = "com.aube.sns.msg.list";

    /**
     * 消息发送
     * (memberToken（用户登录返回的code），videoid（视频ID），content（消息），videoTime（相对视频时间（单位秒））)
     */
    public static final String MESSAGE_SEND = "com.aube.sns.msg.save";

    /**
     * 升级接口
     */
    public static final String UPGRADE = "com.aube.app.upgrade";

    /**
     * 点赞接口
     * relatedId（嘉宾ID）、memberToken
     */
    public static final String DO_PRAISE = "com.aube.actor.praise";

    /**
     * 节目亮点
     */
    //public static final String HIGHLIGHT_VIDEO_MILESTONE = "com.aube.timeline.highlight.list";
    public static final String HIGHLIGHT_VIDEO_MILESTONE = "com.aube.timeline.v2.highlight.list"; // updated on 12/9.

    /**
     * 微博登陆
     * 参数:uid, accessToken
     */
    public static final String WEIBO_LOGIN = "com.aube.ucenter.weibo.login";

    /**
     * 模块内容接口
     * templateCode(index | actor)
     * ostype(iphone|android)
     * modelCode（template接口中获取）
     * relatedId（有就传，比如嘉宾）
     * lastId（分页用，第一次可不传，当前页最后一个id）
     * maxnum（一页最大条数）
     */
    public static final String GET_DRAW_STATE = "com.aube.app.model.data.detail";

    /**
     * 热修复补丁查询接口
     */
    public static final String GET_HOTFIX = "com.aube.app.pacth";

    /**
     * 获取视频主题
     */
    public static final String VIDEO_THEME = "com.aube.video.theme";

    /**
     * 获取视频主题列表信息
     */
    public static final String VIDEO_THEME_LIST_TEST = "com.aube.app.theme.list.test";

}
